package com.songlanyun.modules.areafeature.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.areafeature.entity.GoodsAreaFeatureEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.areafeature.model.GoodsAreaFeaturePageReq;
import com.songlanyun.modules.areafeature.model.GoodsAreaFeatureSlimVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品特征分区
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2022-07-23 10:23:51
 */
@Mapper
public interface GoodsAreaFeatureDao extends BaseMapper<GoodsAreaFeatureEntity> {

    IPage<GoodsAreaFeatureSlimVo> queryAreaFeaturePage(IPage<GoodsAreaFeatureSlimVo> page, @Param("goodsPageReq") GoodsAreaFeaturePageReq paramsMapToReq);

    List<GoodsAreaFeatureSlimVo> queryList(@Param("goodsPageReq") GoodsAreaFeaturePageReq paramsMapToReq);

    IPage<GoodsAreaFeatureSlimVo> queryWelfarePagePage(IPage<GoodsAreaFeatureSlimVo> page,@Param("goodsPageReq") GoodsAreaFeaturePageReq paramsMapToReq);
}
